Skip to content

fix: Prevent lockfile overwrite loops on metadata fetch #20244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ShoyuVanilla
Copy link
Member

@ShoyuVanilla ShoyuVanilla commented Jul 15, 2025

Fixes #20189

This is not ideal because this ad-hoc filtering in crates/rust-analyzer/src/reload.rs might diverge from crates/project-model/src/cargo_workspace.rs but I couldn't find better way 😢 and as this hangs rust-analyzer totally from startup for some people, I thought this must be fixed ASAP

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 15, 2025
@ShoyuVanilla ShoyuVanilla marked this pull request as draft July 15, 2025 16:50
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 15, 2025
@ShoyuVanilla
Copy link
Member Author

ShoyuVanilla commented Jul 15, 2025

Oh, it's mandatory to have lockfile names as Cargo.lock 😅 (I tried to tread the easy way by renaming copied Cargo.lock into Cargo_lock to evade LSP documentChanges filters but unforutnately that didn't work)

@ShoyuVanilla ShoyuVanilla marked this pull request as ready for review July 15, 2025 17:25
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 15, 2025
@ShoyuVanilla
Copy link
Member Author

Some thoughts on this: #t-compiler/rust-analyzer > Do we need copied lockfiles?

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 27, 2025
@ShoyuVanilla ShoyuVanilla deleted the lockfile-mess branch July 27, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSCode stuck on fetching cargo metadata, even without dependencies
2 participants